package com.kerbores.template.session;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.nutz.mvc.impl.session.AbstractSessionProvider;

public class IxionSessionProvider extends AbstractSessionProvider {

	@Override
	public HttpSession createSession(HttpServletRequest request,
			HttpServletResponse response, ServletContext context) {
		System.out.println(request.getSession().getId());//获取sessionId --->可以作为唯一标识进行持久化操作实现分布式Session处理
		return request.getSession(true);
	}

}
